<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>

<body>
</body>
<script>
    const shopcartList = [
        {
            shopcartid: 551,
            bookisbn: '978-7-255',
            bookname: '字母表谴案.六年级趣味书',
            bookpicname: '紫图经典文库.png',
            bookprice: 33,
        },
        {
            shopcartid: 553,
            bookisbn: '978-7-205',
            bookname: '瓦尔登湖:世界上最修心的地方',
            bookpicname: '紫图经典文库.png',
            bookprice: 33,
        },
        {
            shopcartid: 555,
            bookisbn: '978-7-206',
            bookname: '活着，有点兴致',
            bookpicname: '紫图经典文库.png',
            bookprice: 33,
        },
        {
            shopcartid: 556,
            bookisbn: '978-7-214',
            bookname: '紫图经典文库三岛由纪夫大集合(1册)',
            bookpicname: '紫图经典文库.png',
            bookprice: 33,
        },
        {
            shopcartid: 557,
            bookisbn: '978-7-207',
            bookname: '白夜行',
            bookpicname: '紫图经典文库.png',
            bookprice: 33,
        },
        {
            shopcartid: 558,
            bookisbn: '978-7-259',
            bookname: '紫图经典文床三岛由纪夫大集合(10册)',
            bookpicname: '紫图经典文库.png',
            bookprice: 33,
        },
    ]
    function getValArrOfObj(t, k) {
        return t.map(({ [k]: v }) => v, {})
    }
    console.log('xxx', getValArrOfObj(shopcartList, 'bookisbn'));

</script>

</html>